//
//  SourceEditorExtension.swift
//  xcodesort-es
//
//  Created by 赵梁 on 2021/5/26.
//

import Foundation
import XcodeKit

class SourceEditorExtension: NSObject, XCSourceEditorExtension {
    
    
    func extensionDidFinishLaunching() {
        // If your extension needs to do any work at launch, implement this optional method.
        print("")        
    }
    
    
    
    var commandDefinitions: [[XCSourceEditorCommandDefinitionKey: Any]] {
        return MenuManager.navigators.map { navigator in
          return [
            XCSourceEditorCommandDefinitionKey.nameKey: navigator.title,
            XCSourceEditorCommandDefinitionKey.classNameKey: SourceEditorCommand.className(),
            XCSourceEditorCommandDefinitionKey.identifierKey: Helper.namespacedIdentifier(identifier: navigator.title)
          ]
        }
    }
    
    
}
